package com.xbongbong.pay.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * 支付异常
 * @author 魏荣杰
 * @date 2021/1/11 17:29
 * @since
 * @version
 */
@Getter
@Setter
public class PayApiException extends Exception {
    private static final long serialVersionUID = -7464260446627264709L;

    private int errCode;
    private String errMsg;

    public PayApiException(int errCode, String errMsg) {
        super("error code: " + errCode + ", error message: " + errMsg);
        this.errCode = errCode;
        this.errMsg = errMsg;
    }
}
